﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HyhOptFlow
{

    //手环接口
    interface CardOptIF
    {
        /// <summary>
        /// 刷卡
        /// </summary>
        /// <param name="cardid">卡号</param>
        /// <returns>返回状态 如是否需要指纹，是否有效</returns>
        int SwingCard(string cardId);

        /// <summary>
        /// 比对指纹
        /// </summary>
        /// <param name="cardId">卡号</param>
        /// <param name="finger">指纹数据 长度为512个字节</param>
        /// <returns>比对结果</returns>
        int Compare(string cardId,string finger);



        /// <summary>
        /// 修改卡信息
        /// </summary>
        /// <param name="cardId">卡号</param>
        /// <param name="data">要修改的信息</param>
        /// <returns></returns>
        bool UpdateCard(string cardId,object data);
    }
}
